<?php
/**
 * @copyright:Copyright (C) 2010-2014 LiZaoNet Inc. (http://www.lizaonet.com)
 * @license: http://www.lizaonet.com
 * @link:http://www.lizaonet.com
 * @since:File available since Release v1.0
 * @Created by Azrael
 * @User: Azrael
 * @Date: 2016/1/26
 * @Time: 16:41
 *
 */

namespace Home\Model;


use Think\Model;

class PeizhilistModel extends Model
{
    /**
     * 获取网站信息
     * @param $fid 房间ID
     * @param $webtitle 网站标题
     * @return mixed
     */
    public function getInfoByFid($fid, $webtitle)
    {
        $info = $this->where(array("pname" => $webtitle, "fid" => $fid))->find();
        return $info;
    }

    /**
     * 获取房间配置信息
     * @param $fid 房间ID
     * @return mixed
     */
    public function getConfig($fid)
    {
        $info = $this->where(array("fid" => $fid))->select();
        return $info;
    }

}